package item.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import item.bean.Check;
import item.dao.CheckDao;
import item.service.ICheckService;
import item.util.Page;
@Service
public class CheckService implements ICheckService{
	@Autowired 
	CheckDao dao;
	public List<Check> getCheckAll(Check check, Page page) {
		return dao.getCheckAll(check,page);
	}
	public int getCount(Check check) {
		return dao.getCount(check);
	}
	
	public int addCheckMes(Check check) {
		return dao.addCheckMes(check);
	}
	
	public int delCheck(int id) {
		return dao.delCheck(id);
	}
	public int deleteCheck(int id) {
		return dao.deleteCheck(id);
	}
	
	public int editCheck(Check check) {
		 return dao.editCheck(check);
	}
	public int editCheckItem(Check check) {
		return dao.editCheckItem(check);
	}
	public Check getCheckById(int id) {
		return dao.getCheckById(id);
	}
	public int editCheckImgByID(Check check) {
		return dao.editCheckImgByID(check);
	}
}
